From: Florian Müllner Date: Tue, 8 Oct 2024 22:44:23 +0000 (+0200) Subject: tools/toolbox: Install sysext dependencies if necessary X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~173^2^2~145 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=886481beb162fa1d665d65aebdce083ce9cda084;p=gnome-shell.git tools/toolbox: Install sysext dependencies if necessary While the toolbox image itself has all necessary dependencies to build and run the shell, we still need them in the destdir when building a system extension. Achieve this by running .gitlab-ci/install-common-dependencies.sh if it exists, which is the script that is used both for gnome-os system extensions and mutter's CI image. Part-of: --- diff --git a/tools/toolbox/meson-build.sh b/tools/toolbox/meson-build.sh index a2f637c7c..3b6a793af 100755 --- a/tools/toolbox/meson-build.sh +++ b/tools/toolbox/meson-build.sh @@ -52,6 +52,12 @@ compile_command() { install_command() { local destdir=${BUILD_SYSEXT:+/var/lib/extensions/$TOOLBOX} + + local install_deps=.gitlab-ci/install-common-dependencies.sh + if [[ $BUILD_SYSEXT && -x $install_deps ]]; then + echo -n "$install_deps --destdir $destdir && " + fi + if [[ $destdir || ! $RUN_DIST ]]; then echo -n "sudo meson install -C $BUILD_DIR ${destdir:+--destdir=$destdir}" else